'''
Created on 17/12/2010

@author: inyaky
'''

from google.appengine.ext import db


class TaskField(db.Model):
    
    _taskOwner = db.ReferenceProperty()
    _name = db.StringProperty()
    _required = db.BooleanProperty()
    
    def getTaskOwner(self):
        return self._taskOwner
    
    def getName(self):
        return self._name
    
    def setTaskOwner(self, aTaskOwner):
        self._taskOwner = aTaskOwner
        self.put()
        
    def setName(self, aName):
        self._name = aName
        self.put()    
        
    def setRequired(self,aValue):
        self._required = aValue
        
    def getRequired(self):
        return self._required
        
